<?php
/**
 * <pre>
 * <b>RUBIK IT Solution & Development ltd.</b>
 *
 * PROJECT		: x4you
 * COPYRIGHT	: 2009
 * ------------------------------------------------------
 *
 * [GENERAL INFO OF THIS FILE]
 *
 * </pre>
 *
 * Created on	:  Mar 11, 2009
 *
 * @author		hoadn <hoadn@rubik.com.vn>
 * @access		[public/private]
 * @package	[package name]
 *
 */
defined ( '_FW_EXEC' ) or die ( 'Restricted access' );
RCoreImporter::cls( "mvc.AbstractController" );

class LanguageController extends AbstractController {

	/**
	 * Model of EventModels
	 *
	 * @var EventModel
	 */
	var $_model	=	NULL;

	/**
	 * Contrustor of EventController
	 *
	 */
	function __construct() {
		parent::__construct ();
		SysApplication::importModelCls ( "LanguageModel" );
		$this->_model = new LanguageModel ( );
		$this->registerTask ( "new", "edit" );
		$this->registerTask ( "apply", "save" );
	}

	function site() {
		SysApplication::importControllerCls('SiteLanguageController');
		$ctrl = new SiteLanguageController();
		$ctrl->executeBy($this->getNextExcute());
		$ctrl->redirect();
	}
	
	function country() {
		SysApplication::importControllerCls('CountryController');
		$ctrl = new CountryController();
		$ctrl->executeBy($this->getNextExcute());
		$ctrl->redirect();
	}

	function label() {
		SysApplication::importControllerCls('LabelController');
		$ctrl = new LabelController();
		$ctrl->executeBy($this->getNextExcute());
		$ctrl->redirect();
	}

}

?>